package com.dd;

import com.dd.exception.UnauthorizedException;

/**
 * 用户权限管理
 * 
 * @author sgw
 * 
 */
public class PermissionsManager {
	
	
	public void addUserPermission(User user, int permissionType)
			throws UnauthorizedException {
		//TODO	为用户增加权限
	}

	public void removeUserPermission(User user, int permissionType)
			throws UnauthorizedException {
		//TODO 为用户删除权限
	}

	
	public Permissions getPermissions(int userID) {
		//TODO 取得用户所有权限
		Permissions ps = new Permissions();
		return ps;
	}

}
